package com.tensquare.spit.service;


import com.tensquare.spit.pojo.Spit;
import entity.PageResult;

import java.util.List;

public interface SpitService {

    List<Spit> findAll();

    Spit findOne(String spitId);

    void add(Spit spit);

    void update(Spit spit);

    void delete(String spitId);

    PageResult<Spit> comment(String parentid, int page, int size);

    boolean thumbup(String spitId);

    boolean thumbup2(String spitId);
}
